<?php if (!defined('THINK_PATH')) exit();?>﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    ﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta content="" name="description"/>
    <meta content="webthemez" name="author"/>
    <title>在线答疑平台管理系统</title>
    <!-- Bootstrap Styles-->
    <link href="/zxdyxt_php/Public/assets/css/bootstrap.css" rel="stylesheet"/>
    <!-- FontAwesome Styles-->
    <link href="/zxdyxt_php/Public/assets/css/font-awesome.css" rel="stylesheet"/>
    <!-- Morris Chart Styles-->
    <link href="/zxdyxt_php/Public/assets/js/morris/morris-0.4.3.min.css" rel="stylesheet"/>
    <!-- Custom Styles-->
    <link href="/zxdyxt_php/Public/assets/css/custom-styles.css" rel="stylesheet"/>
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
    <link rel="stylesheet" href="/zxdyxt_php/Public/assets/js/Lightweight-Chart/cssCharts.css">
</head>
<body>
<div id="wrapper">
    <nav class="navbar navbar-default top-navbar" role="navigation">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">
                <strong><i class="icon fa fa-plane"></i>在线答疑管理系统</strong>
            </a>
            <ul class="nav navbar-top-links navbar-right">
            <li><a href="../Index/doLogOut"><i class="fa fa-sign-out fa-fw"></i> 退出登录</a>
            </li>
            </ul>
        </div>


    </nav>
    <!--/. NAV TOP  -->
    <nav class="navbar-default navbar-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="main-menu">

                <li>
                    <a href="/zxdyxt_php/Admin/question/QuestionList"><i class="fa fa-sitemap"></i> 问题管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" >
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/Admin/question/QuestionList">问题管理列表</a>
                        </li>
                    </ul>
                </li>

                <li>
                    <a href="#"><i class="fa fa-sitemap"></i> 答案管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" >
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/Admin/answer/AnswerList">答案管理列表</a>
                        </li>
                    </ul>
                </li>


                <li>
                    <a href="#"><i class="fa fa-sitemap"></i> 课程管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" >
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/Admin/Course/CourseList">课程信息列表</a>
                        </li>
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/Admin/Course/CourseAdd">添加课程</a>
                        </li>
                    </ul>
                </li>

                <li>
                    <a href="#"><i class="fa fa-sitemap"></i> 用户管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" >
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/Admin/user/UserList">用户信息列表</a>
                        </li>
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/Admin/user/TeacherList">教师信息列表</a>
                        </li>
                        <li>   <!--class="active-menu"-->  <!-- collapse in-->  <!--aria-expanded="true"-->
                            <a href="/zxdyxt_php/Admin/user/StudentList">学生信息列表</a>
                        </li>
                    </ul>
                </li>









            </ul>

        </div>

    </nav>
    <!-- /. NAV SIDE  -->

    <!-- /. PAGE INNER  -->
</div>
<!-- /. PAGE WRAPPER  -->
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="/zxdyxt_php/Public/assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="/zxdyxt_php/Public/assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="/zxdyxt_php/Public/assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="/zxdyxt_php/Public/assets/js/dataTables/jquery.dataTables.js"></script>
<script src="/zxdyxt_php/Public/assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
    $(document).ready(function () {
        $('#dataTables-example').dataTable();
    });
</script>
<!-- Custom Js -->
<script src="/zxdyxt_php/Public/assets/js/custom-scripts.js"></script>


</body>
</html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>Bootstrap Admin html Template</title>
    <!-- Bootstrap Styles-->
    <link href="/zxdyxt_php/Public/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FontAwesome Styles-->
    <link href="/zxdyxt_php/Public/assets/css/font-awesome.css" rel="stylesheet" />
    <!-- Morris Chart Styles-->

    <!-- Custom Styles-->
    <link href="/zxdyxt_php/Public/assets/css/custom-styles.css" rel="stylesheet" />
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <!-- TABLE STYLES-->
    <link href="/zxdyxt_php/Public/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">

    <div id="page-wrapper" >
        <div class="header">
            <h1 class="page-header">
                教师列表 <small>Teacher tables</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="/zxdyxt_php/Admin/user/UserList">用户列表</a></li>
                <li class="active">教师列表</li>
                <li><a href="/zxdyxt_php/Admin/user/StudentList">学生列表</a></li>
            </ol>

        </div>

        <div id="page-inner">

            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Advanced Tables
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                    <tr>
                                        <th>编号</th>
                                        <th>用户姓名</th>
                                        <th>用户头像</th>
                                        <th>出生年月</th>
                                        <th>用户类别</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php if(is_array($TeacherList)): $i = 0; $__LIST__ = $TeacherList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$teacher): $mod = ($i % 2 );++$i;?><tr>
                                            <td><?php echo ($cnt++); ?></td>
                                            <td><a href="/zxdyxt_php/Admin/User/UserInfo/user_id/<?php echo ($teacher["u_id"]); ?>" ><?php echo ($teacher["u_name"]); ?></a></td>
                                            <td><img src="/zxdyxt_php/Public/upload/userpics/<?php echo ($teacher["u_pic"]); ?>"style="width: 80px"></td>
                                            <td><?php echo ($teacher["u_birthday"]); ?></td>
                                            <td>
                                                <?php if($teacher["u_state"] == '0'): ?>学生
                                                    <?php else: ?>
                                                    教师<?php endif; ?>


                                            </td>
                                            <td>
                                                <?php if($teacher["u_state"] == '0'): ?><a href="/zxdyxt_php/Admin/User/state/id/<?php echo ($teacher["u_id"]); ?>/state/<?php echo ($teacher["u_state"]); ?>" class="btn btn-warning btn-sm">设为教师</a>
                                                    <?php else: ?>
                                                    <a href="/zxdyxt_php/Admin/User/isstate/id/<?php echo ($teacher["u_id"]); ?>/state/<?php echo ($teacher["u_state"]); ?>" class="btn btn-warning btn-sm"><i
                                                            class="icon-move"></i>设为学生</a><?php endif; ?>
                                                <a href="/zxdyxt_php/Admin/User/UserPwd/user_id/<?php echo ($teacher["u_id"]); ?>" class="btn btn-success btn-sm">重置密码</a>
                                                <a href="/zxdyxt_php/Admin/User/UserDel/user_id/<?php echo ($teacher["u_id"]); ?>" class="btn btn-danger btn-sm" onclick="return confirm('你确定要删除吗')">删除</a>
                                            </td>
                                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>

                                    </tbody>
                                </table>
                            </div>

                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>

        </div>
        <footer><p>Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://www.cssmoban.com/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p></footer>
    </div>
    <!-- /. PAGE INNER  -->
</div>
<!-- /. PAGE WRAPPER  -->
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="/zxdyxt_php/Public/assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="/zxdyxt_php/Public/assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="/zxdyxt_php/Public/assets/js/jquery.metisMenu.js"></script>
<!-- DATA TABLE SCRIPTS -->
<script src="/zxdyxt_php/Public/assets/js/dataTables/jquery.dataTables.js"></script>
<script src="/zxdyxt_php/Public/assets/js/dataTables/dataTables.bootstrap.js"></script>
<script>
    $(document).ready(function () {
        $('#dataTables-example').dataTable();
    });
</script>
<!-- Custom Js -->
<script src="/zxdyxt_php/Public/assets/js/custom-scripts.js"></script>


</body>
</html>